package com.cykj.user.mapper;

import com.cykj.common.entity.OrdersDO;
import com.cykj.user.vo.OrdersVO;
import com.cykj.user.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BelongsProject: smart_recruit_backend
 * @BelongsPackage: com.cykj.user.mapper
 * @Author: 浮行
 * @CreateTime: 2025-08-23 10:51
 * @Description: TODO
 * @Version: 1.0
 */
@Mapper
public interface OrderMapper {
    /**
    * @Description: 修改用户会员状态和到期时间
    * @Param: [userVO]
    * @return: java.lang.Integer
    */
    Integer updateUserVIP(@Param("userVO") UserVO userVO);
    /**
    * @Description: 新增订单
    * @Param: [ordersVO]
    * @return: java.lang.Integer
    */
    Integer addOrder(@Param("ordersVO") OrdersVO ordersVO);
    /**
    * @Description: 查询用户的订单 
    * @Param: [ordersVO]
    * @return: java.util.List<com.cykj.common.entity.OrdersDO>
    */
    List<OrdersDO> selectUserOrders(@Param("ordersVO") OrdersVO ordersVO);
}
